<div class="navbar navbar-violet navbar-fixed-top" role="navigation">
    <div class="container">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="{{ path("common_application_application_index") }}">eYe QCM</a>
        </div>
        <div class="navbar-collapse collapse">
            {% if is_granted("IS_AUTHENTICATED_REMEMBERED") %}
                <ul class="nav navbar-nav">
                    <li><a href="{{path("common_library_theme_index")}}">Gestion des thèmes et des QCM</a></li>
                    <li class="dropdown">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown">Paramètrages<b class="caret"></b></a>
                        <ul class="dropdown-menu">
                            <li><a href="{{path("common_library_niveau_index")}}">Niveaux</a></li>
                            <li><a href="{{path("common_library_difficulte_index")}}">Difficultés</a></li>
                            <li><a href="{{path("common_library_evaluation_index")}}">Evaluations</a></li>
                        </ul>
                    </li>
                    <li><a href="#">Utilisateurs</a></li>
                </ul>
            {% endif %}
            <ul class="nav navbar-nav navbar-right">
                <li class="dropdown">
                    {% if is_granted("IS_AUTHENTICATED_REMEMBERED") %}
                        <a class="dropdown-toggle" data-toggle="dropdown">{{ app.user.username }}<b class="caret"></b></a>
                        <ul class="dropdown-menu">
                            <li>
                                <a href="{{path("fos_user_change_password")}}">Changer Mot de passe</a>
                            </li>
                            <li>
                                <a href="{{path("fos_user_security_logout")}}">Déconnexion</a>
                            </li>
                        </ul>
                    {% endif %}
                </li>
            </ul>
        </div>
    </div>
</div>